<template>
	<scroll-view class="scroll-view-class" scroll-x :scroll-left="left" v-if="show" scroll-with-animation>
		<slot></slot>
	</scroll-view>
	<view v-else class="view-class">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		props: {
			show: {
				type: Boolean,
				default: false
			},
			left: {
				type: Number,
				default: 0
			}
		}
	}
</script>

<style scoped>
</style>